// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import Layout from '@/layout'

const advertisingSpaceRouter = {
  path: '/basicInformations',
  component: Layout,
  redirect: '/basicInformation/index',
  name: 'basicInformations',
  meta: {
    title: '基础信息',
    icon: 'clipboard'
  },
  children: [
    // 组织架构
    {

      path: 'divisionalIndex',
      component: () => import('@/views/basic/organ/organIndex'),
      name: 'divisionalIndex',
      meta: { title: '基础信息维护', icon: '' },
      children: [

        {
          path: 'divisionalIndex',
          component: () => import('@/views/basic/organ/dept/deptIndex'),
          name: 'divisionalIndex',
          meta: { title: '组织部门管理', icon: '' },

        },
        {

          path: 'personIndex',
          component: () => import('@/views/basic/organ/person/personIndex'),
          name: 'personIndex',
          meta: { title: '员工管理', icon: '' }
        },
        {

          path: 'personDimissionIndex',
          component: () => import('@/views/basic/organ/personDimission/personDimissionIndex'),
          name: 'personDimissionIndex',
          meta: { title: '员工入离职管理', icon: '' }
        },
        {
          path: 'materialCode',
          component: () => import('@/views/basic/organ/personPost/personPostIndex'),
          name: 'materialCode',
          meta: { title: '员工岗位管理', icon: '' }
        },
        {
          path: 'personJobIndex',
          component: () => import('@/views/basic/organ/personJob/personJobIndex'),
          name: 'personJobIndex',
          meta: { title: '员工职位管理', icon: '' }
        },

      ]
    },

    {

      path: 'authIndex',
      component: () => import('@/views/basic/auth/authIndex'),
      name: 'authIndex',
      meta: { title: '账号权限管理', icon: '' },
      children: [
        {
          path: 'roleIndex',
          component: () => import('@/views/basic/auth/role/roleIndex'),
          name: 'roleIndex',
          meta: { title: '角色管理', icon: '' }
        },
        {
          path: 'user',
          component: () => import('@/views/basic/auth/user/userIndex'),
          name: 'user',
          meta: { title: '用户配置', icon: '' }
        },
        {
          path: 'funcIndex',
          component: () => import('@/views/basic/auth/func/funcIndex'),
          name: 'funcIndex',
          meta: { title: '菜单配置', icon: '' }
        },
        // src\views\basic\auth\func\funcIndex.vue
      ]
    },
    // 


    // 



    {

      path: 'propertyIndex',
      component: () => import('@/views/basic/property/propertyIndex'),
      name: 'propertyIndex',
      meta: { title: '物业设置', icon: '' },
      children: [
        {
          path: 'propertyIndexs',
          component: () => import('@/views/basic/property/property/propertyIndex'),
          name: 'propertyIndexs',
          meta: { title: '资产管理', icon: '' }
        },
        {
          path: 'buildingIndex',
          component: () => import('@/views/basic/property/building/buildingIndex'),
          name: 'buildingIndex',
          meta: { title: '物业管理', icon: '' }
        },
        {
          path: 'equIndex',
          component: () => import('@/views/basic/property/equ/equIndex'),
          name: 'equIndex',
          meta: { title: '设施设备管理', icon: '' }
        },
        {
          path: 'carIndex',
          component: () => import('@/views/basic/property/car/carIndex'),
          name: 'carIndex',
          meta: { title: '车辆管理', icon: '' }
        }, {
          path: 'wemIndex',
          component: () => import('@/views/basic/property/wem/wemIndex'),
          name: 'wemIndex',
          meta: { title: '水电表管理', icon: '' }
        },
        {
          path: 'leasedResourcesIndex',
          component: () => import('@/views/basic/property/leasedResources/leasedResourcesIndex'),
          name: 'leasedResourcesIndex',
          meta: { title: '租赁资源管理', icon: '' }
        },

        {
          path: '/mat',
          component: () => import('@/views/basic/property/mat/matIndex'),
          name: 'mat',
          redirect: '/basic/property/mat/matIndex',
          meta: { title: '维修物料管理', icon: '' },
          children: [
            {

              path: 'typeIndex',
              component: () => import('@/views/basic/property/mat/type/typeIndex'),
              name: 'typeIndex',
              meta: { title: '物料类别管理', icon: '' }
            },
            {
              path: 'codeIndex',
              component: () => import('@/views/basic/property/mat/code/codeIndex'),
              name: 'codeIndex',
              meta: { title: '物料代码管理', icon: '' }
            }
          ]
        },
      ]
    },


    {

      path: 'safeIndex',
      component: () => import('@/views/basic/safe/safeIndex'),
      name: 'safeIndex',
      meta: { title: '安全管理设置', icon: '' },
      children: [
        {

          path: 'vloIndex',
          component: () => import('@/views/basic/safe/vlo/vloIndex'),
          name: 'vloIndex',
          meta: { title: '违章设置', icon: '' }
        },
        {
          path: 'danIndex',
          component: () => import('@/views/basic/safe/dan/danIndex'),
          name: 'danIndex',
          meta: { title: '隐患设置', icon: '' }
        },
        {
          path: 'sysIndex',
          component: () => import('@/views/basic/safe/sys/sysIndex'),
          name: 'sysIndex',
          meta: { title: '证书类别设置', icon: '' }
        },
        {
          path: 'sysAccidentIndex',
          component: () => import('@/views/basic/safe/sysAccident/sysAccidentIndex'),
          name: 'sysAccidentIndex',
          meta: { title: '事故性质设置', icon: '' }
        },
        {
          path: 'characterTypeIndex',
          component: () => import('@/views/basic/safe/characterType/characterTypeIndex'),
          name: 'characterTypeIndex',
          meta: { title: '事故类别设置', icon: '' }
        },

        {
          path: 'ptcIndex',
          component: () => import('@/views/basic/safe/pct/pctIndex'),
          name: 'ptcIndex',
          meta: { title: '保洁点检管理', icon: '' }
        },
        {
          path: 'gradeAccidentsSys',
          component: () => import('@/views/basic/safe/gradeAccidentsSys/gradeAccidentsSysIndex'),
          name: 'gradeAccidentsSys',
          meta: { title: '事故等级设置', icon: '' }
        },
        {
          path: 'injuryCategorySys',
          component: () => import('@/views/basic/safe/injuryCategorySys/injuryCategorySysIndex'),
          name: 'injuryCategorySys',
          meta: { title: '工伤类别设置', icon: '' }
        },

        {
          path: 'JobCheckIns',
          component: () => import('@/views/basic/safe/JobCheckIns/JobCheckInsIndex'),
          name: 'JobCheckIns',
          meta: { title: '作业点检设置', icon: '' }
        },
        {
          path: 'siteInspectionIns',
          component: () => import('@/views/basic/safe/siteInspectionIns/siteInspectionInsIndex'),
          name: 'siteInspectionIns',
          meta: { title: '现场检查设置', icon: '' }
        },
        {
          path: 'checkItemIns',
          component: () => import('@/views/basic/safe/checkItemIns/checkItemInsIndex'),
          name: 'checkItemIns',
          meta: { title: '检查项设置', icon: '' }
        },
      ]
    },
    //设备管理设置

    {
      path: 'equMaintenanceIndex',
      component: () => import('@/views/basic/equMaintenance/equMaintenanceIndex'),
      name: 'equMaintenanceIndex',
      meta: { title: '设备管理设置', icon: '' },
      children: [
        {
          path: 'equMaintenanceInsIndex',
          component: () => import('@/views/basic/equMaintenance/equMaintenanceIns/equMaintenanceInsIndex'),
          name: 'equMaintenanceInsIndex',
          meta: { title: '维修项设置', icon: '' }
        },
        {
          path: 'teamSettingInsIndex',
          component: () => import('@/views/basic/equMaintenance/teamSettingIns/teamSettingInsIndex'),
          name: 'teamSettingInsIndex',
          meta: { title: '班组设置', icon: '' }
        },

        {
          path: 'parkAreaAreIndex',
          component: () => import('@/views/basic/equMaintenance/parkAreaAre/parkAreaAreIndex'),
          name: 'parkAreaAreIndex',
          meta: { title: '园区区域设置', icon: '' }
        },
      ]
    },
    {
      path: 'otherIndex',
      component: () => import('@/views/basic/other/otherIndex'),
      name: 'otherIndex',
      meta: { title: '其他设置', icon: '' },
      children: [
        {
          path: 'bccIndex',
          component: () => import('@/views/basic/other/bcc/bccIndex'),
          name: 'bccIndex',
          meta: { title: '往来单位管理', icon: '' }
        },
        {
          path: 'taxIndex',
          component: () => import('@/views/basic/other/tax/taxIndex'),
          name: 'taxIndex',
          meta: { title: '园区企业税费管理', icon: '' }
        },
        {
          path: 'purchaseDeptIndex',
          component: () => import('@/views/basic/other/purchaseDept/purchaseDeptIndex'),
          name: 'purchaseDeptIndex',
          meta: { title: '采购部门管理', icon: '' }
        },
        {
          path: 'docTplIndex',
          component: () => import('@/views/basic/other/docTpl/docTplIndex'),
          name: 'docTplIndex',
          meta: { title: '文档模板管理', icon: '' }
        },
        {
          path: 'msgTplIndex',
          component: () => import('@/views/basic/other/msgTpl/msgTplIndex'),
          name: 'msgTplIndex',
          meta: { title: '消息模板管理', icon: '' }
        },




      ]

    },

    {
      path: 'messageIndex',
      component: () => import('@/views/basic/message/messageIndex'),
      name: 'messageIndex',
      meta: { title: '消息中心', icon: '' },
      children: [
        {
          path: 'pubMessageIndex',
          component: () => import('@/views/basic/message/pubMessage/pubMessageIndex'),
          name: 'pubMessageIndex',
          meta: { title: '公告消息', icon: '' }
        },
        {

          path: 'bizMessageIndex',
          component: () => import('@/views/basic/message/bizMessage/bizMessageIndex'),
          name: 'bizMessageIndex',
          meta: { title: '业务消息', icon: '' }
        },

        {
          path: 'blessMessageIndex',
          component: () => import('@/views/basic/message/blessMessage/blessMessageIndex'),
          name: 'blessMessageIndex',
          meta: { title: '祝福消息', icon: '' }
        },
      ]

    },








    {
      path: 'sortManagement',
      component: () => import('@/views/basicInformation/sortManagement/index'),
      name: 'sortManagement',
      meta: { title: '分类管理', icon: '' }
    },





    {

      path: 'equipmentAdd/:id?',
      name: 'equipmentAdd',

      hidden: true,
      component: () => import('@/views/basic/property/equ/com/equipmentAdd'),
      meta: {
        title: '设备新增/修改',
        noCache: true, activeMenu: `/basicInformation/userConfig`
      }
    },
    {

      path: 'facilityAdd/:id?',
      name: 'facilityAdd',
      hidden: true,
      component: () => import('@/views/basic/property/equ/com/facilityAdd'),
      meta: {
        title: '设施新增',
        noCache: true, activeMenu: `/basicInformation/userConfig`
      }
    },













  ]
}

export default advertisingSpaceRouter
